home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / 19p.dir / 00001.ls next >
Encoding:
Text File  |  1999-04-05  |  1.5 KB  |  63 lines

  1. on startMovie
  2.   global gKnobSprite, gSendMovie, gCursorReady, gKnobState, gplaybtnsprite, gFNEngBtnSprite
  3.   gplaybtnsprite = 0
  4.   puppetSprite(48, 1)
  5.   gCursorReady = 1
  6.   gKnobSprite = 14
  7.   gSendMovie = "19p"
  8.   gKnobState = 1
  9.   puppetSprite(gKnobSprite, 1)
  10.   setUpKnob()
  11.   set the mouseDownScript to EMPTY
  12.   set the mouseUpScript to EMPTY
  13.   sprite(24).visible = 0
  14. end
  15.  
  16. on idle
  17.   global gCursorReady
  18.   if gCursorReady = 1 then
  19.     cursor(200)
  20.     checkCursors()
  21.     set the locH of sprite 48 to the mouseH
  22.     set the locV of sprite 48 to the mouseV
  23.     updateStage()
  24.   end if
  25.   qtidle()
  26. end
  27.  
  28. on stopMovie
  29.   global zeoIdle
  30.   stopmovieqt()
  31.   gplaybtnsprite = 23
  32.   zeoIdle = 0
  33. end
  34.  
  35. on checkCursors
  36.   global gMagCursor, zeoIdle
  37.   gMagCursor = "magCursor"
  38.   set the castNum of sprite 48 to the number of member "curs1"
  39.   repeat with i = 15 to 17
  40.     if rollOver(i) then
  41.       set the castNum of sprite 48 to the number of member "hotCursor"
  42.     end if
  43.   end repeat
  44.   repeat with i = 20 to 21
  45.     if the castNum of sprite i and (rollOver(i) and not zeoIdle) then
  46.       set the castNum of sprite 48 to the number of member "hotCursor"
  47.     end if
  48.   end repeat
  49.   repeat with i = 31 to 32
  50.     if rollOver(i) then
  51.       set the castNum of sprite 48 to the number of member "hotCursor"
  52.     end if
  53.   end repeat
  54.   repeat with i = 40 to 42
  55.     if rollOver(i) then
  56.       set the castNum of sprite 48 to the number of member "hotCursor"
  57.     end if
  58.   end repeat
  59.   if the castNum of sprite 47 and rollOver(47) then
  60.     set the castNum of sprite 48 to the number of member "hotCursor"
  61.   end if
  62. end
  63.